Move send_message and get_from_imap to other queue. Also clean up variables in tasks