Bangladesh lost the second Test by a slim margin of 17 runs in Dhaka on Sunday to suffer their first whitewash at home since 2012.