Fixed an error that deployment doesnot timeout when hanging