return instead of exiting from bash functions