Added exception handling and test case for BlockServerHandler and BlockFetchingClientHandler.