[purejs]: Better exception handling, & abstracted out _send