Fixes #15 - Rename close method to end