remove pending requests and send message from tern-worker on Tern errors
fix grunt warning