Added begin/rescue for Ctrl+C