Fixed issue which caused last message to be handled twice when worker crashed