closing login box if any exception while processing reqeust