Fixed issue where finally callback function was being specified incorrectly and added code to make sure that the text field gets put back into user focus after modal window closes.